import 'element-plus/dist/index.css'

import * as ElIcons from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { App } from 'vue'

export default {
  install(app: App) {
    for (const name in ElIcons) {
      app.component(name, (ElIcons as any)[name])
    }
    app.use(ElementPlus, { size: 'default', zIndex: 2000, locale: zhCn })
  },
}
